#
# Be sure to run `pod lib lint StockChartZ.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
  s.name             = 'StockChartZ'
  s.version          = '0.2.1'
  s.summary          = 'A short description of StockChartZ.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://github.com/zhu.jialai@gmail.com/StockChart'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'zhu.jialai@gmail.com' => 'zhujialai@icloud.com' }
  s.source           = { :git => 'git@gitee.com:wellcomezhu/iosstockchart.git', :tag =>'test.0.7'}
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '11.0'
  # s.osx.deployment_target = '10.10'
  s.ios.pod_target_xcconfig = { 'PRODUCT_BUNDLE_IDENTIFIER' => 'com.ll.zenstockchart' }
  # s.osx.pod_target_xcconfig = { 'PRODUCT_BUNDLE_IDENTIFIER' => 'com.ll.zenstockchart' }

  s.source_files = 'StockChart.h'
  # s.public_header_files ='MainChart/StockDataSource.h','MainChart/stockChartView.h','MainChart/stockChartViewProtocol.h'

  s.subspec 'ZenIndex' do |ss|
    ss.source_files = 'ZenIndex/*'
    ss.public_header_files = 'ZenIndex/*.h'
    ss.compiler_flags = '-DUSE_FRAMEWORK=1'
    ss.xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) USE_FRAMEWORK=1' }
    ss.dependency  'StockExprZen'
    ss.dependency  'StockChartZ/TechIndexBase' 
    ss.dependency  'StockChartZ/CommonUI' 
    ss.dependency  'StockChartZ/Common' 
  end
  s.subspec 'Common' do |ss|
    ss.source_files = 'Common/*.{m,h,mm}', 'Common/Theme/*.{mm,m,h}'
    ss.public_header_files = "Common/*.h",'Common/Theme/*.h'
    ss.dependency  'AFNetworking', '~> 3.0'
    ss.dependency  'ChameleonFramework'
    ss.dependency  'MJExtension'
  end
  s.subspec 'CommonUI' do |ss|
    ss.source_files = 'CommonUI/*.{m,mm,h}'
    ss.public_header_files = "CommonUI/*.h"
    ss.dependency  'FTPopOverMenu'
    ss.dependency  'MJExtension'
    ss.dependency  'Masonry'
    ss.dependency  'Toast', '~> 4.0.0'
    ss.dependency  'ChameleonFramework'
    ss.dependency 'StockChartZ/Common' 
  end


  s.subspec 'TechIndexBase' do |ss|
    ss.source_files = 'zenindicator/base/*'
    ss.public_header_files = 'zenindicator/base/*.h'
    ss.dependency 'StockChartZ/Common' 
    ss.dependency 'StockChartZ/CommonUI' 
    ss.compiler_flags = '-DUSE_FRAMEWORK=1'
    ss.dependency 'StockExpr' 
    ss.dependency 'CCTALib'
    ss.dependency 'MJExtension'
    ss.xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) USE_FRAMEWORK=1' }
  end

  s.subspec 'TechIndexSet' do |ss|
    ss.source_files = 'zenindicator/indicator/*'
    ss.public_header_files = 'zenindicator/indicator/indicatorMgr.h'
    ss.dependency 'StockChartZ/Common' 
    ss.dependency 'StockChartZ/CommonUI' 
    ss.dependency 'StockChartZ/ZenIndex' 
    ss.dependency 'StockChartZ/TechIndexBase' 
    ss.dependency 'CCTALib'
    ss.dependency 'MJExtension'
  end
  
  s.subspec 'Chart' do |ss|
    ss.source_files = 'MainChart/*.{m,mm,h}', 'MainChart/StockView/*','MainChart/StockView/**/*','MainChart/IndicatorConfig/*'
    ss.public_header_files ='MainChart/*.h'
    ss.dependency 'StockChartZ/Common' 
    ss.dependency 'StockChartZ/CommonUI' 
    ss.dependency 'StockChartZ/TechIndexSet' 
    ss.dependency 'StockChartZ/TechIndexBase' 
    ss.dependency 'Masonry'
    ss.dependency 'InAppSettingsKit'
    ss.dependency 'MGSwipeTableCell'
    ss.dependency 'Toast', '~> 4.0.0'
    ss.dependency 'AFNetworking'
  end
end
